﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCSelectPR.ascx.cs" Inherits="InstrumentCheck.WebAppUI.UserControl.UCSelectPR" %>
<script type="text/javascript" language="javascript">
    function returnPRValue(strPRNO) {
        SetPRValue(strPRNO);
    }
</script>
<table style="width:400px;height:auto;">
    <tr style="background-color:#A9BFF9;height:10px;">
    <td style="text-align:left;">
        <table>
            <tr>
                <td style="width:98%;text-align:left;font-weight:bold;">儀器校驗系統</td>
                <td style="width:2%;text-align:right"><img src="../images/close.jpg" alt="Close" onclick="Unlock();" onmouseover="this.style.cursor='hand'" /></td>
            </tr>
        </table> 
    </td>
    </tr>
    <tr>
        <td align="left">
            PR單號：&nbsp;&nbsp;
            <asp:TextBox runat="server" ID="txtKeyWord" Width="100px"></asp:TextBox> &nbsp;&nbsp;
            <asp:Button ID="btnQuery" runat="server" Text="開始查找" onclick="btnQuery_Click" />
        </td>           
    </tr>
    <tr style="height:10px">
        <td align="center">
            <asp:TextBox ID="txtTableName" CssClass="hide" runat="server"></asp:TextBox>
            <asp:Label ID="lblNoData" runat="server" ForeColor="Red"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <asp:GridView ID="gvPRInfo" runat="server" AutoGenerateColumns="False" 
                AllowPaging="True" onpageindexchanging="gvPRInfo_PageIndexChanging" 
                onrowdatabound="gvPRInfo_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="PRNO" HeaderText="表單單號" />
                    <asp:BoundField HeaderText="申購人" />
                    <asp:BoundField HeaderText="申購部門" />
                    <asp:BoundField DataField="ApplyDate" HeaderText="申購日期" />
                    <asp:BoundField HeaderText="簽核結果" />
                </Columns>
            </asp:GridView>        
        </td>
    </tr>        
</table>
